package cn.heycm.cachedrequest.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author hey
 * @version 1.0
 * @since 2024/9/24 17:10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Result {

    private int code;
    private String msg;
    private Object data;

    public String plain(){
        return "{\"code\":"+code+",\"msg\":\""+msg+"\"}";
    }
}
